<?php

namespace addons\CustomerService\common\models\robot;

use common\behaviors\MerchantBehavior;

/**
 * This is the model class for table "{{%addon_customer_service_robot_history}}".
 *
 * @property int $id 机器人客服记录id
 * @property int $merchant_id 商户id
 * @property string $question 提问内容
 * @property int $created_at
 * @property int $updated_at
 */
class History extends \common\models\base\BaseModel
{
	use MerchantBehavior;
	
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%addon_customer_service_robot_history}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['merchant_id', 'question'], 'required'],
            [['merchant_id', 'created_at', 'updated_at'], 'integer'],
            [['question'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => '机器人客服记录id',
            'merchant_id' => '商户id',
            'question' => '提问内容',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
